bitkeeper revision 1.1159.217.9 (41e4ea41-PFvthJ_X2r27xBL8jEH1g)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Wed, 12 Jan 2005 09:13:37 +0000 (09:13 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Wed, 12 Jan 2005 09:13:37 +0000 (09:13 +0000)
Fix tools compilation.

BitKeeper/etc/ignore
tools/ioemu/Makefile
tools/ioemu/gui/Makefile
tools/ioemu/iodev/Makefile
tools/ioemu/memory/Makefile
tools/ioemu/memory/misc_mem.cc
tools/libxc/xc.h
tools/libxc/xc_linux_save.c

index 00addd679e7be584335a85722b414c987ac216da..272e240cbba1ad04b7a9020f5681c07a8e71a21c 100644 (file)
@@ -20,29 +20,9 @@ docs/*.log
 docs/*.pdf
 docs/*.ps
 docs/*.toc
-docs/figs/xenserver.eps
 docs/html/*
-docs/interface/WARNINGS
-docs/interface/images.pl
-docs/interface/images.tex
-docs/interface/img1.png
-docs/interface/index.html
-docs/interface/interface.css
-docs/interface/interface.html
-docs/interface/labels.pl
 docs/pdf/*
 docs/ps/*
-docs/user/WARNINGS
-docs/user/images.pl
-docs/user/images.tex
-docs/user/img1.png
-docs/user/img2.png
-docs/user/img3.png
-docs/user/index.html
-docs/user/internals.pl
-docs/user/labels.pl
-docs/user/user.css
-docs/user/user.html
 extras/mini-os/h/hypervisor-ifs
 install/*
 linux-*-xen0/*
@@ -61,6 +41,7 @@ pristine-*
 tools/*/build/lib*/*.py
 tools/balloon/balloon
 tools/check/.*
+tools/ioemu/iodev/device-model
 tools/libxc/xen/*
 tools/misc/miniterm/miniterm
 tools/misc/xen_cpuperf
index 78a16a7fbd499b1346409a09f1182b17990ba364..24215c5a6f4ce4b02d2d395fa565fd2e529e9afe 100644 (file)
@@ -1,12 +1,12 @@
 # Order is important!
 SUBDIRS=gui memory iodev
 
-all: $(SUBDIRS)
+.PHONY: all clean install
 
-$(SUBDIRS):
-       $(MAKE) -C $@
-
-.PHONY: all $(SUBDIRS)
+all:
+       @for subdir in $(SUBDIRS); do                           \
+               $(MAKE) -C $$subdir $(MAKEDEFS) $@ || exit -1;  \
+       done
 
 clean:
        @for subdir in $(SUBDIRS); do                           \
index 402c70c76d15fbe85f04f582eeb233128cdf0af4..52ce67bd20804b66f3fb6c580a83c0d562acf84e 100644 (file)
@@ -8,3 +8,5 @@ libgui.a: $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)
 
 include $(TOPDIR)/mk/helix.mk
+
+install:: all
index 5c251dea8c8fcb2425f3e1ffd8e2bf5f2c8578b3..1d29463d260682fb80848eb3e12d48584de6b859 100644 (file)
@@ -11,5 +11,5 @@ device-model: $(OBJS) $(BXLIBS)
 
 include $(TOPDIR)/mk/helix.mk
 
-install::
+install:: all
        install device-model $(prefix)/usr/sbin
index cd85cb894ffec1150513beedea4221f54bd44569..eb9be7da4bc1de77fb7ada51c5ee022f73eb9322 100644 (file)
@@ -9,3 +9,4 @@ libmemory.a: $(OBJS)
 
 include $(TOPDIR)/mk/helix.mk
 
+install:: all
index 0c883eb664179f38b0c2bc4be9cd357b31195fe9..51be8cbfb34286d2ea4d26ce845bc448a33ebbd0 100644 (file)
@@ -80,7 +80,7 @@ BX_MEM_C::alloc_vector_aligned (size_t bytes, size_t alignment)
   actual_vector = new Bit8u [bytes+test_mask];
   // round address forward to nearest multiple of alignment.  Alignment 
   // MUST BE a power of two for this to work.
-  Bit64u masked = ((Bit64u)(actual_vector + test_mask)) & ~test_mask;
+  unsigned long masked = ((unsigned long)(actual_vector + test_mask)) & ~test_mask;
   vector = (Bit8u *)masked;
   // sanity check: no lost bits during pointer conversion
   BX_ASSERT (sizeof(masked) >= sizeof(vector));
index 8114faafb2e654f83010d99f31d0db96da72a9ad..3c4d03cfc3b2a7dfc71941b285c2a868ece19b73 100644 (file)
@@ -10,7 +10,6 @@
 #define __XC_H__
 
 #include <stdint.h>
-#include "linux_boot_params.h"
 
 typedef uint8_t            u8;
 typedef uint16_t           u16;
@@ -25,7 +24,6 @@ typedef int64_t            s64;
 #include <xen/dom0_ops.h>
 #include <xen/event_channel.h>
 #include <xen/sched_ctl.h>
-#include <xen/io/domain_controller.h>
 
 /* Obtain or relinquish a handle on the 'xc' library. */
 int xc_interface_open(void);
@@ -107,6 +105,7 @@ xc_plan9_build (int xc_handle,
                unsigned int control_evtchn, 
                unsigned long flags);
 
+struct mem_map;
 int xc_vmx_build(int xc_handle,
                  u32 domid,
                  const char *image_name,
index 6d877c84f0e57c84e05e773f955bea4111fd9405..95224467366e714ca25966e5dbde5c941d1b631d 100644 (file)
@@ -10,6 +10,7 @@
 #include <sys/time.h>
 #include "xc_private.h"
 #include <xen/linux/suspend.h>
+#include <xen/io/domain_controller.h>
 #include <time.h>
 
 #define BATCH_SIZE 1024   /* 1024 pages (4MB) at a time */